package com.weu.service.impl;

import com.weu.bean.Brand;
import com.weu.mapper.BrandMapper;
import com.weu.service.IBrandService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BrandServiceImpl implements IBrandService {

    @Resource
    private BrandMapper brandMapper;

    @Override
    public List<Brand> getAll() {
        return brandMapper.getAll();
    }

    @Override
    public Brand getOne(int id) {
        return brandMapper.getOne(id);
    }

    @Override
    public int delById(int id) {
        return brandMapper.delById(id);
    }

    @Override
    public int updateBrand(Brand brand) {
        return brandMapper.updateBrand(brand);
    }

    @Override
    public int saveBrand(Brand brand) {
        return brandMapper.saveBrand(brand);
    }

}
